package cn.yitun.chat.yitunservercommonlib.enums.system;

/**
 * 角色数据范围
 */
public enum RoleScopeEnums {

    DATA_SCOPE_ALL("1", "所有数据"),
    DATA_SCOPE_COMPANY_AND_CHILD("2", "所在公司及以下数据"),
    DATA_SCOPE_COMPANY("3", "所在公司数据"),
    DATA_SCOPE_OFFICE_AND_CHILD("4", "所在部门及以下数据"),
    DATA_SCOPE_OFFICE("5", "所在部门数据"),
    DATA_SCOPE_SELF("8", "仅本人数据"),
    DATA_SCOPE_CUSTOM("9", "按明细设置"),

    ;
    private String type;
    private String name;

    RoleScopeEnums() {
    }

    RoleScopeEnums(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
